package br.com.projeto.persistence;

import java.sql.*;

public class BaseDAO{

    PreparedStatement stmt;
    Connection con;
    ResultSet rs;
    
    
    public void open()throws Exception{
        
        Class.forName("com.mysql.jdbc.Driver");
        
        con = DriverManager.getConnection("jdbc:mysql://localhost:3306/projeto","root","rafael"); 
    }
    
    public void close()throws Exception{
        con.close();
    }


}
